# from random import choice
#
# from rest_framework import serializers
# from game.models import Record
#
#
#
# class UserSerializer(serializers.ModelSerializer):
#     """
#     用户详情序列化类
#     """
#
#     iswining = serializers.CharField(source='get_iswining_display',label="输赢",allow_blank=True)
#     isbig = serializers.CharField(source='get_isbig_display',label="压大小结果",allow_blank=True)
#     winres = serializers.CharField(source='get_winres_display',label="开奖大小结果",allow_blank=True)
#     num = serializers.CharField(allow_blank=True,label="猜中的数字")
#
#     class Meta:
#         model = Record
#         fields = ("num","beton", "winres", "isbig","iswining","add_time")
